//
//  ChannelGuaranteeViewController.m
//  TenThousand
//
//  Created by 宁宁 on 16/7/25.
//  Copyright © 2016年 baixue. All rights reserved.
//

#import "ChannelGuaranteeViewController.h"

@interface ChannelGuaranteeViewController ()

@end

@implementation ChannelGuaranteeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor colorWithRed:237/255.0 green:237/255.0 blue:237/255.0 alpha:1];
    
    [self setView];
}

- (void)setView{
    
    UIView *bgview = [[UIView alloc] initWithFrame:CGRectMake(8, 8, Screen_Width - 16, 1000)];
    bgview.backgroundColor = [UIColor whiteColor];
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(12, 12, Screen_Width - 24 - 16, Screen_Height)];
    label.font = [UIFont systemFontOfSize:14];
    label.numberOfLines = 0;
    NSString *introduction = @"公司核心团队成员均在银行、保险、风投等金融机构，有着极为丰富的金融理论知识及优越的金融从业背景。";
    //设置label行距
    NSMutableAttributedString *attributedString = [[NSMutableAttributedString alloc] initWithString:introduction];
    NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
    [paragraphStyle setLineSpacing:9];
    [attributedString addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:NSMakeRange(0, [introduction length])];
    label.attributedText = attributedString;
    [label sizeToFit];
    
    bgview.frame = CGRectMake(8, 8, Screen_Width - 16, label.frame.size.height + 24);
    [bgview addSubview:label];
    [self.view addSubview:bgview];
}


@end
